# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Makefile for cypress-tools
#

CFLAGS += -Wall -Werror -fPIC -fno-exceptions

COMMAND_OBJS = cyapa_fw_update.o

OBJS = $(COMMAND_OBJS)

COMMAND = cyapa_fw_update

%.o: %.c
	$(CC) $(CFLAGS) -o $@ -c $<

all: $(COMMAND)

$(COMMAND): $(COMMAND_OBJS)
	$(CC) -o $@ $(LDFLAGS) $^

clean:
	rm -f $(COMMAND) $(OBJS)
